<route lang="json5" type="page">
{
  layout: 'default',
  style: {
    navigationBarTitleText: '搜索',
  },
}
</route>

<template>
  <view class="">
    <navigator url="/pages/index/index" open-type="navigate" hover-class="navigator-hover">
      <wd-search disabled hide-cancel light />
    </navigator>
  </view>
</template>

<script lang="ts" setup>
//
const focus = (e) => {
  console.log('搜索框获取焦点', e)
}
</script>

<style lang="scss" scoped>
//
.custom-input-class {
  padding: 0 10px;
  background-color: #fff;
  border-radius: 8px;
}
</style>
